package lab02.test16;

/**
 * Created by 123 on 2017/12/29.
 */
public class Subtraction extends Math {
    int arr[] = new int[5];
    int afterSubstration;


    @Override
    int subtraction() {
        afterSubstration=arr[0];
        for (int i = 1; i <=4; i++) {
            afterSubstration = afterSubstration-arr[i];
        }
        System.out.println("所求差为" + afterSubstration);
        return afterSubstration;
    }

}
